Reset Script vs State Entry
October 11, 2009 · 37 views · 0 comments
Nearby In Time
Step Up and Stand Up
October 9, 2009
Freedom for the apples!
October 10, 2009
Walk into the light
October 10, 2009
Abble Bobbers
October 11, 2009
Reset Script vs State Entry
October 11, 2009
Second Life on Ubuntu
October 19, 2009
Cloneing
October 26, 2009
Wierd Neighbors
October 27, 2009
Preso-Matic Game Kit
October 27, 2009
About
I've been able to cut my scripts initial memory down so that I have about 41k available. Originally I had about 25k available. The primary tips are to reduce the need for functions, global variables, lists, and string length. The other thing to cut back on is the amount of features you are starting off with. Keep the script as simple as possible. The shocker for me today was the memory consumption of llResetScript. I found that in some cases, I could replace it with a state change back to the default state with a memory savings of over 500 bytes. Other times, this method had no effect at all. This confuses me. Why is this method so memory intensive sometimes? From Dedric Mauriac via bloghud.com